package com.seele.tigerwallet.ui.fragment;

import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;

import com.seele.tigerwallet.R;
import com.seele.tigerwallet.model.AssetsModel;
import com.seele.tigerwallet.ui.adapter.AssetsAdapter;
import com.seele.tigerwallet.ui.base.BaseFragment;
import com.seele.tigerwallet.ui.utils.SystemUtils;
import com.seele.tigerwallet.ui.views.AssetsScrollView;

import java.util.ArrayList;
import java.util.List;

public class AssetsFragment2 extends BaseFragment {


    private static AssetsFragment2 assetsFragment;
    private RecyclerView mRecyclerView;
    AssetsAdapter mAssetsAdapter;


    public static AssetsFragment2 newInstanec() {
        if (assetsFragment == null) {
            assetsFragment = new AssetsFragment2();
        }
        return assetsFragment;
    }

    @Override
    protected int getLayoutId() {
        return R.layout.frag_assets2;
    }

    @Override
    protected void initView() {
//        mRecyclerView = $f(R.id.assets_recyclerView);
//        mRecyclerView.setLayoutManager(new LinearLayoutManager(mContext));
//        List<AssetsModel> list = new ArrayList<>();
//        AssetsModel assetsModel = new AssetsModel();
//        AssetsModel assetsModel2 = new AssetsModel();
//        list.add(assetsModel2);
//        list.add(assetsModel);
//        mAssetsAdapter = new AssetsAdapter(R.layout.item_assets);
//        mRecyclerView.setAdapter(mAssetsAdapter);
//        mAssetsAdapter.setNewData(list);
//        mAssetsAdapter.notifyDataSetChanged();

    }
}
